package com.dianning.bean;

import java.io.*;
import java.util.*;

public class Message implements Serializable {
	private static final long serialVersionUID = 3938860373226088110L;
	
	private long id;			//主键ID
	private long fromuid;		//发消息人id
	private long touid;			//收消息人id
	private String folder;		//文件夹 inbox：收件箱，outbox：发件箱
	private int isnew;			//是否为新 0：不为新，1：为新
	private String message;		//消息内容
	private int delstatus;		//删除状态 0：未被删，1：删除
	private Date addTime;		//添加时间
	
	private UserInfo fromUserInfo;
	private UserInfo toUserInfo;
	
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public long getFromuid() {
		return fromuid;
	}
	public void setFromuid(long fromuid) {
		this.fromuid = fromuid;
	}
	public long getTouid() {
		return touid;
	}
	public void setTouid(long touid) {
		this.touid = touid;
	}
	public String getFolder() {
		return folder;
	}
	public void setFolder(String folder) {
		this.folder = folder;
	}
	public int getIsnew() {
		return isnew;
	}
	public void setIsnew(int isnew) {
		this.isnew = isnew;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public int getDelstatus() {
		return delstatus;
	}
	public void setDelstatus(int delstatus) {
		this.delstatus = delstatus;
	}
	public Date getAddTime() {
		return addTime;
	}
	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}
	public UserInfo getFromUserInfo() {
		return fromUserInfo;
	}
	public void setFromUserInfo(UserInfo fromUserInfo) {
		this.fromUserInfo = fromUserInfo;
	}
	public UserInfo getToUserInfo() {
		return toUserInfo;
	}
	public void setToUserInfo(UserInfo toUserInfo) {
		this.toUserInfo = toUserInfo;
	}
}
